from dataaccess import DirectorData
from common import utility


class DirectorBiz(object):
    def __init__(self):
        pass

    def __ValidateInsert(self, director):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateUpdate(self, director):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateDelete(self, username):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def InsertDirector(self, director):
        self.__ValidateInsert(director)
        directorData = DirectorData.DirectorData()
        directorData.InsertDirector(director)

    def UpdateDirector(self, director):
        self.__ValidateUpdate(director)
        directorData = DirectorData.DirectorData()
        directorData.UpdateDirector(director)

    def DeleteDirector(self, username):
        self.__ValidateDelete(username)
        directorData = DirectorData.DirectorData()
        directorData.DeleteDirector(username)
